﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DotNetCore.CAP;
using Microsoft.AspNetCore.Mvc;

// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace NETCORE.CAP.Controllers
{
    [Route("api/[controller]")]
    public class ReceivedController : Controller
    {
        [NonAction]
        [CapSubscribe("xxx.services.show.time")]
        public void CheckReceivedMessage(DateTime time)
        {
            Console.WriteLine(time);
            //return Task.CompletedTask;
        }
    }
}
